package com.woniu.cms.lease.core.service.impl;

import com.woniu.cms.lease.core.entity.LeaseStorage;
import com.woniu.cms.lease.core.mapper.LeaseStorageMapper;
import com.woniu.cms.lease.core.service.ILeaseStorageService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author romantic sheep
 * @since 2022-09-18
 */
@Service
public class LeaseStorageServiceImpl extends ServiceImpl<LeaseStorageMapper, LeaseStorage> implements ILeaseStorageService {
    @Autowired
    private LeaseStorageMapper leaseStorageMapper;
    @Override
    public List<LeaseStorage> all() {
       return leaseStorageMapper.all();
    }

    @Override
    public int add(LeaseStorage leaseStorage) {
        return leaseStorageMapper.add(leaseStorage);
    }

    //修改状态
    @Override
    public int Revise(int id) {
        int revise = leaseStorageMapper.Revise(id);
        return revise;
    }

}
